<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/sys/menu/";  //应用的地址名
%>
<script type="text/javascript">

     $(function(){
		$('#menuManagerTree').tree({   
		    //checkbox: true,    
		    url:'<%=basePath%>SysMenu_searchMenuJsonTree.action',  //获取json格式的节点树
		    //打开节点时的操作
		    onClick:function (node){ 
		               $("#menuManager").load("<%=path%>/sys/menu/SysMenu_look.action?chkSelf="+node.id+"&viewAreaName=menuManager&treeName=menuManagerTree");
		    },
		    onDblClick:function(node){
		    	$('#menuManagerTree').tree('toggle',node.target);
		    },
		    //加载数据失败的处理        
		    onLoadError: function () {    
                $.messager.alert('消息提示','菜单树加载失败，请稍后再试！','error'); 
            }                     
		        });      
         }); 
 
</script>

<ul id="menuManagerTree"></ul>